package com.bee.auth.manager.impl;

import com.bee.auth.manager.UserManager;
import com.bee.user.client.UserClient;
import com.bee.user.client.dto.UserDTO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author Damin.yang
 * @date 2019/08/23 16:48
 */
@Service
public class UserManagerImpl implements UserManager {

    @Autowired
    private UserClient userClient;

    @Override
    public UserDTO queryUserByUsernameOrPhone(String uname) {
        return userClient.queryUser(uname);
    }
}
